package com.domain;

public class Person {
    private String name;
    private int age;
    public int no,tow,there;
    private int d;
    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person() {
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", no=" + no +
                ", tow=" + tow +
                ", there=" + there +
                ", d=" + d +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void eat(){
        System.out.println("吃....");
    }
    public void eat(String food){
        System.out.println("吃" + food);
    }

    private void eat(String name,String food){
        System.out.println(name+"爱吃"+food);
    }
}
